import createAxios from '/@/utils/axios'

export const indexUrl = '/admin/v1/invoice/'

export function invoiveInfo(id: string) {
    return createAxios({
        url: indexUrl + 'detail',
        method: 'get',
        params: {
            id: id,
        },
    })
}

export function invoiveSendEmail(method: 'get' | 'post', params: object = {}): ApiPromise {
    return createAxios({
        url: indexUrl + 'invoive-send-email',
        data: params,
        method: method,
    }) as ApiPromise
}